package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YqRiskCheckMapper;
import com.ruoyi.system.domain.YqRiskCheck;
import com.ruoyi.system.service.IYqRiskCheckService;
import com.ruoyi.common.core.text.Convert;

/**
 * 疫情风险排查Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-18
 */
@Service
public class YqRiskCheckServiceImpl implements IYqRiskCheckService 
{
    @Autowired
    private YqRiskCheckMapper yqRiskCheckMapper;

    /**
     * 查询疫情风险排查
     * 
     * @param id 疫情风险排查主键
     * @return 疫情风险排查
     */
    @Override
    public YqRiskCheck selectYqRiskCheckById(String id)
    {
        return yqRiskCheckMapper.selectYqRiskCheckById(id);
    }

    /**
     * 查询疫情风险排查列表
     * 
     * @param yqRiskCheck 疫情风险排查
     * @return 疫情风险排查
     */
    @Override
    public List<YqRiskCheck> selectYqRiskCheckList(YqRiskCheck yqRiskCheck)
    {
        return yqRiskCheckMapper.selectYqRiskCheckList(yqRiskCheck);
    }

    /**
     * 新增疫情风险排查
     * 
     * @param yqRiskCheck 疫情风险排查
     * @return 结果
     */
    @Override
    public int insertYqRiskCheck(YqRiskCheck yqRiskCheck)
    {
        return yqRiskCheckMapper.insertYqRiskCheck(yqRiskCheck);
    }

    /**
     * 修改疫情风险排查
     * 
     * @param yqRiskCheck 疫情风险排查
     * @return 结果
     */
    @Override
    public int updateYqRiskCheck(YqRiskCheck yqRiskCheck)
    {
        return yqRiskCheckMapper.updateYqRiskCheck(yqRiskCheck);
    }

    /**
     * 批量删除疫情风险排查
     * 
     * @param ids 需要删除的疫情风险排查主键
     * @return 结果
     */
    @Override
    public int deleteYqRiskCheckByIds(String ids)
    {
        return yqRiskCheckMapper.deleteYqRiskCheckByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除疫情风险排查信息
     * 
     * @param id 疫情风险排查主键
     * @return 结果
     */
    @Override
    public int deleteYqRiskCheckById(String id)
    {
        return yqRiskCheckMapper.deleteYqRiskCheckById(id);
    }
}
